import { FC, useState, useEffect } from 'react';
import { Button } from 'antd'
import { useHistory } from 'dva';

const Styles:any = {
  width:'100px',
  height:'45px',
  border:'1px solid #000',
  borderRadius: '4px',
  // display: 'flex',
  justifyContent: 'center',
  alignItems: 'center',
  display:'inline-block',
  textAlign: 'center',
  lineHeight: '45px'
}


const Detail:FC<any> = (props) => {
  const history = useHistory();
  return <div>
  <span style={Styles}>赵六</span>
  <span style={Styles} onClick={() => {
    history.push('/chat')
  }}>在线问</span>
  </div>
}

export default Detail
